import Vue from 'vue'
import App from './App.vue'
import router from './router'
import { store } from './store/index';
import toast2regist from "./components/common/Toast/index2";
import toast1regist from "./components/common/Toast/index"
import FastClick from 'fastclick'
import Vuelazyload from 'vue-lazyload'
import loginToast from "./components/common/loginToast/index"
import registToast from './components/common/registToast/index';

Vue.config.productionTip = false
// 注册一下$bus原型
Vue.prototype.$bus = new Vue()

// 安装fastclick
FastClick.attach(document.body)
// 安装vuelazyload 第二个参数可以传配置 自行百度
Vue.use(Vuelazyload)

// 安装toast插件
Vue.use(toast2regist)
Vue.use(toast1regist)
// 安装登录组件
Vue.use(loginToast)
// 安装注册插件
Vue.use(registToast)
new Vue({
  render: h => h(App),
  router,
  store
}).$mount('#app')
